home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Adobe Graphics & Publishing SDK 1996 December
/
Adobe Graphics & Publishing SDK 1996 December.iso
/
mac
/
Illustrator 6.0 SDK r1 Mac
/
AI Plugin Interface
/
AIDrawArt.h
< prev
next >
Wrap
Text File
|
1995-12-21
|
3KB
|
138 lines
/**
AIDrawArt.h
Copyright (c) 1995 Adobe Systems Incorporated.
All Rights Reserved
Adobe Illustrator 6.0 Draw Art Suite.
**/
#ifndef __AIDrawArt__
#define __AIDrawArt__
/*******************************************************************************
**
** Imports
**
**/
#include "AITypes.h"
#include "AIArt.h"
#include "AIFixedMath.h"
#include "AIRaster.h"
#if Macintosh
#ifdef __cplusplus
extern "C" {
#endif
#if PRAGMA_ALIGN_SUPPORTED
#pragma options align=mac68k
#endif
#if PRAGMA_IMPORT_SUPPORTED
#pragma import on
#endif
#endif
/*******************************************************************************
**
** Constants
**
**/
#define kAIDrawArtSuite "AI Draw Art Suite"
#define kAIDrawArtVersion 2
// AIDrawArtFlags
#define kAIDrawArtPreviewBit 0 // preview if true, artwork if false
#define kAIDrawArtPreviewImagesBit 1 // Show images if true
#define kAIDrawArtPreviewDimmedImagesBit 2 // Show dimmed images if true
#define kAIDrawArtPreviewPatternsBit 3
#define kAIDrawArtSelectObjectsBit 4
#define kAIDrawArtShowGuidesBit 5
#define kAIDrawArtPreviewMask (1 << kAIDrawArtPreviewBit)
#define kAIDrawArtPreviewImagesMask (1 << kAIDrawArtPreviewImagesBit)
#define kAIDrawArtPreviewDimmedImagesMask (1 << kAIDrawArtPreviewDimmedImagesBit)
#define kAIDrawArtPreviewImageOrDimImageMask (kAIDrawArtPreviewImagesMask | kAIDrawArtPreviewDimmedImagesMask)
#define kAIDrawArtPreviewPatternsMask (1 << kAIDrawArtPreviewPatternsBit)
#define kAIDrawArtSelectObjectsMask (1 << kAIDrawArtSelectObjectsBit)
#define kAIDrawArtShowGuidesMask (1 << kAIDrawArtShowGuidesBit)
#define kAIDrawArtUnknownOutput 0
#define kAIDrawArtGWorldOutput 1
// DrawArt errors.
#define kUnknownDrawArtErr 'DHUH'
#define KUnknownDrawArtOutputTypeErr 'DOUT'
#define kBadDrawArtPreviewMatrixErr 'DMTX'
/*******************************************************************************
**
** Types
**
**/
typedef unsigned long AIDrawArtFlags;
typedef long AIDrawArtOutputType;
typedef struct {
void *worldPointer;
} AIDrawArtGWorld;
typedef struct {
short version;
AIDrawArtFlags flags;
AIDrawArtOutputType type;
FixedPoint origin;
FixedMatrix matrix;
AIArtHandle art;
Fixed greekThreshold;
AIExtendedRGBColorRec selectionColor;
union {
AIDrawArtGWorld gWorld;
} output;
} AIDrawArtData;
/*******************************************************************************
**
** Suite
**
**/
typedef struct {
MACPASCAL FXErr (*DrawArt)( AIDrawArtData *data );
} AIDrawArtSuite;
#if Macintosh
#if PRAGMA_IMPORT_SUPPORTED
#pragma import off
#endif
#if PRAGMA_ALIGN_SUPPORTED
#pragma options align=reset
#endif
#ifdef __cplusplus
}
#endif
#endif
#endif